home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format CD 7 / Amiga Format AFCD07 (Dec 1996, Issue 91).iso / serious / shareware / comms / internet / web-related / apache_1.0.5 / conf / httpd.conf < prev    next >
Text File  |  1996-06-25  |  5KB  |  134 lines

  1. # This is the main server configuration file. See URL http://www.apache.org/
  2. # for instructions.
  3.  
  4. # Do NOT simply read the instructions in here without understanding
  5. # what they do, if you are unsure consult the online docs. You have been
  6. # warned.
  7.  
  8. # Originally by Rob McCool
  9.  
  10. # ServerType is either inetd, or standalone.
  11.  
  12. ServerType inetd
  13. #ServerType standalone
  14.  
  15. # If you are running from inetd, go to "ServerAdmin".
  16.  
  17. # Port: The port the standalone listens to. For ports < 1023, you will
  18. # need httpd to be run as root initially.
  19.  
  20. Port 80
  21.  
  22. # If you wish httpd to run as a different user or group, you must run
  23. # httpd as root initially and it will switch.
  24.  
  25. # User/Group: The name (or #number) of the user/group to run httpd as.
  26. #  On SCO (ODT 3) use User nouser and Group nogroup
  27. User http
  28. Group http
  29.  
  30. # ServerAdmin: Your address, where problems with the server should be
  31. # e-mailed.
  32.  
  33. ServerAdmin jsshephe@undergrad.math.uwaterloo.ca
  34.  
  35. # ServerRoot: The directory the server's config, error, and log files
  36. # are kept in
  37.  
  38. ServerRoot /apache
  39.  
  40. # BindAddress: You can support virtual hosts with this option. This option
  41. # is used to tell the server which IP address to listen to. It can either
  42. # contain "*", an IP address, or a fully qualified Internet domain name.
  43. # See also the VirtualHost directive.
  44.  
  45. #BindAddress *
  46.  
  47. # ErrorLog: The location of the error log file. If this does not start
  48. # with /, ServerRoot is prepended to it.
  49.  
  50. ErrorLog logs/error_log
  51.  
  52. # TransferLog: The location of the transfer log file. If this does not
  53. # start with /, ServerRoot is prepended to it.
  54.  
  55. TransferLog logs/access_log
  56.  
  57. # PidFile: The file the server should log its pid to
  58. PidFile logs/httpd.pid
  59.  
  60. # ServerName allows you to set a host name which is sent back to clients for
  61. # your server if it's different than the one the program would get (i.e. use
  62. # "www" instead of the host's real name).
  63. #
  64. # Note: You cannot just invent host names and hope they work. The name you
  65. # define here must be a valid DNS name for your host. If you don't understand
  66. # this, ask your network administrator.
  67.  
  68. #ServerName www
  69. #new.host.name
  70.  
  71. # CacheNegotiatedDocs: By default, Apache sends Pragma: no-cache with each
  72. # document that was negotiated on the basis of content. This asks proxy
  73. # servers not to cache the document. Uncommenting the following line disables
  74. # this behavior, and proxies will be allowed to cache the documents.
  75.  
  76. #CacheNegotiatedDocs
  77.  
  78. # Timeout: The number of seconds before receives and sends time out
  79. #  n.b. the compiled default is 1200 (20 minutes !)
  80.  
  81. Timeout 400
  82.  
  83. # Server-pool size regulation.    Rather than making you guess how many
  84. # server processes you need, Apache dynamically adapts to the load it
  85. # sees --- that is, it tries to maintain enough server processes to
  86. # handle the current load, plus a few spare servers to handle transient
  87. # load spikes (e.g., multiple simultaneous requests from a single
  88. # Netscape browser).
  89.  
  90. # It does this by periodically checking how many servers are waiting
  91. # for a request.  If there are fewer than MinSpareServers, it creates
  92. # a new spare.    If there are more than MaxSpareServers, some of the
  93. # spares die off.  These values are probably OK for most sites ---
  94.  
  95. MinSpareServers 5
  96. MaxSpareServers 10
  97.  
  98. # Number of servers to start --- should be a reasonable ballpark figure.
  99.  
  100. StartServers 5
  101.  
  102. # Limit on total number of servers running, i.e., limit on the number
  103. # of clients who can simultaneously connect --- if this limit is ever
  104. # reached, clients will be LOCKED OUT, so it should NOT BE SET TOO LOW.
  105. # It is intended mainly as a brake to keep a runaway server from taking
  106. # Unix with it as it spirals down...
  107.  
  108. MaxClients 150
  109.  
  110. # MaxRequestsPerChild: the number of requests each child process is
  111. #  allowed to process before the child dies.
  112. #  The child will exit so as to avoid problems after prolonged use when
  113. #  Apache (and maybe the libraries it uses) leak.  On most systems, this
  114. #  isn't really needed, but a few (such as Solaris) do have notable leaks
  115. #  in the libraries.
  116.  
  117. MaxRequestsPerChild 30
  118.  
  119. # VirtualHost: Allows the daemon to respond to requests for more than one
  120. # server address, if your server machine is configured to accept IP packets
  121. # for multiple addresses. This can be accomplished with the ifconfig
  122. # alias flag, or through kernel patches like VIF.
  123.  
  124. # Any httpd.conf or srm.conf directive may go into a VirtualHost command.
  125. # See alto the BindAddress entry.
  126.  
  127. #<VirtualHost host.foo.com>
  128. #ServerAdmin webmaster@host.foo.com
  129. #DocumentRoot /www/docs/host.foo.com
  130. #ServerName host.foo.com
  131. #ErrorLog logs/host.foo.com-error_log
  132. #TransferLog logs/host.foo.com-access_log
  133. #</VirtualHost>
  134.